/**
 * Created by shandianhaizan on 16/7/13.
 */


var AV = require('leanengine');
var model = {};

model.name = 'Present';



model.getQuery = function(){
    return new AV.Query(model.name);
};

model.formatQuery = function(arg_query, arg_params) {
    return arg_query;
};




model.getObject = AV.Object.extend(model.name);




//Todo check param valid
model.validation  = function(params){
    if(params.getTime) params.getTime = new Date(params.getTime);
    if(params.avilableTime) params.avilableTime = new Date(params.avilableTime);
    return {success:true};
};





module.exports = model;

